import request from '@/utils/request'

export function getCommunityList(data) {
  return request({
    url: '/admin.php?s=Admin.Community.CommunityQuery',
    method: 'post',
    data,
  })
}

export function getCommunityDetail(data) {
  return request({
    url: '/admin.php?s=Admin.Community.CommunityDetail',
    method: 'post',
    data,
  })
}

export function addCommunity(data) {
  return request({
    url: '/admin.php?s=Admin.Community.AddCommunity',
    method: 'post',
    data,
  })
}

export function editCommunity(data) {
  return request({
    url: '/admin.php?s=Admin.Community.UpdateCommunity',
    method: 'post',
    data,
  })
}

export function deleteCommunity(data) {
  return request({
    url: '/admin.php?s=Admin.Community.DeleteCommunity',
    method: 'post',
    data,
  })
}
